package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author sunyamei
 * @version V1.0
 * @Project javase2203
 * @Package com.qf.listener
 * @Description:
 * @Date 2022/8/9 11:15
 */
@Component
@RabbitListener(queues = "queue2")
public class TestWorkListener2 {

    @RabbitHandler
    public void messageHandler(String msg) {
        System.out.println("====接收方2====" + msg);
    }

}